package com.example.api.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @program: api_limit
 * @description: 令牌桶
 * @author: Mr.chen
 * @create: 2020-02-18 19:09
 **/
@Getter
@Setter
@AllArgsConstructor
public class TokenBucket {
    /**
     * 最后填满时间
     */
    private long lastRefillTime;
    /**
     * token剩余数量
     */
    private int tokensRemaining;
}
